package com.tedu.lingma.agent.assistant;


import dev.langchain4j.community.model.dashscope.QwenStreamingChatModel;
import dev.langchain4j.model.chat.StreamingChatLanguageModel;
import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.V;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import reactor.core.publisher.Flux;

@AiService(wiringMode = AiServiceWiringMode.EXPLICIT,
        streamingChatModel = "qwenStreamingChatModel",
    chatMemory = "chatMemory",chatMemoryProvider = "chatMemoryProvider",
        tools = "assistantTools")
public interface Assistant {

    @SystemMessage(fromResource = "static/my-prompt-template.txt")
    Flux<String> chat(@MemoryId int memoryId, @UserMessage String message);
}
